package simple.server;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService
public class HelloService {
    public int hi() {
        return 123;
    }


    public String sayHello(@WebParam(name = "words") String words) {
        return "hello:" + words;
    }

    public static void main(String[] args) {
        Endpoint.publish("http://localhost:9001/Hello", new HelloService());
        System.out.println("Publish Success~");//看到这个输出代表发布成功了


    }
}
